home *** CD-ROM | disk | FTP | other *** search
- Path: news.zocalo.net!news
- From: Paul Hsieh <qed@xenon.chromatic.com>
- Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Subject: Re: Young programmers read me.
- Date: Thu, 11 Apr 1996 21:04:58 -0700
- Organization: Zocalo Engineering - Berkeley, California, USA
- Message-ID: <316DD66A.5CEB@xenon.chromatic.com>
- References: <4icpp9$7hr@barad-dur.nas.com> <4imqe4$cj3@ping1.ping.be> <1996Mar23.224853.116513@kuhub.cc.ukans.edu> <4j52hn$ikb@news.ios.com> <Pine.OSF.3.91.960403112207.17337H-100000@bud.cc.swin.edu.au> <aidan-0404961557290001@meathook.intac.com> <pnoguchi-0404962135210001@pnoguchi.his.com> <aidan-0604961847480001@meathook.intac.com> <316a2987.3677177@news.cyberport.com> <316C722E.528A@his.com>
- NNTP-Posting-Host: paulh.chromatic.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Tom Daniels wrote:
- > My question is this: If you are writing non system type programs
- > (I include games in this category), why in the world would you
- > ever resort to such a hack as to assign a raw address to a function
- > pointer.
-
- On the fly compiled code maybe? There are certain tasks where on-the-
- fly compilation (Sprites are *NOT* one of them by the way) is the best
- solution (in terms of performance.) For example, let's say you are
- writing a program that plot's fractals, but want to let the user enter
- any formula possible. Then for performance reasons you would want to
- be able to *compile* the function, before attempting to plot the
- fractal.
-
- > [...] It's that sort of crap (that is easy to do even by
- > accident) that C is infamous for. As a program manager heading a
- > project, I would shoot at dawn, the first programmer who pulled this
- > kind of crap.
-
- That's not a very flexible attitude. I suppose the scope of your
- company is not very big. Don't write anything performance sensitive
- do you? In many situations its easy to have that sort of idealistic
- attitude.
-
- > [...] If you gotta do that stuff, you've misdesigned your program
- > structure somewhere.
-
- I disagree.
-
- > Then again, if you're writing a system kernel or something like that
- > it doesn't matter quite so much,
-
- Well, you have few choices in that case, now don't you? How on earth
- could you launch new programs without doing something of this nature?
-
- > [...] but still it leaves a terrible taste in my mouth.
-
- Sorry to hear that.
-
- --
- Paul Hsieh
- qed@xenon.chromatic.com
- Graphics Programmer
- Chromatic Research
-
- What I say and what my company says are not always the same thing
-